<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="utf-8" />
    <title>角色新增</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <meta content="" name="description" />
    <meta content="" name="author" />
    <link href="${staticUrl}/js/libs/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="${staticUrl}/css/metro/metro-default.css" rel="stylesheet"/> 
    <link rel="stylesheet" href="${staticUrl}/js/plugins/jDialog/jDialog.css" />
    
    <script src="${staticUrl}/js/libs/jquery/jquery-1.8.3.min.js"></script>
    <script src="${staticUrl}/js/plugins/jDialog/jDialog.js"></script>
    <script type="text/javascript" src="${staticUrl}/js/plugins/validate/jquery.validate.min.js?v=${staticV}"></script>
    <script type="text/javascript" src="${staticUrl}/js/plugins/jquery.form.js?v=${staticV}"></script>
    <script type="text/javascript">
			var CONTEXTPATH ="${staticUrl}";
	</script>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="fixed-top">
                    <!-- BEGIN SAMPLE FORMPORTLET-->
                            <!-- BEGIN FORM-->
                            <form action="${staticUrl }/role/addRole" class="cmxform form-horizontal" id="roleForm" method="post">
                            <div class="control-group">
                                <label class="control-label">编码</label>
                                <div class="controls">
                               	    <input type="hidden"  value="${type }" id="type" name="type"/>
                                    <input type="text" class="span6 " value="${roleNum }" id="roleNum" name="roleNum" required <c:if test="${type == '2'}">readOnly</c:if> />
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">名称</label>
                                <div class="controls">
                                    <input class="span6 " type="text"  id="roleName" name="roleName" required />
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">级别</label>
                                <div class="controls">
	                                    <select class="span6 "  tabindex="1"  id="roleLevel" name="roleLevel" required>
	                                        <option value="">请选择</option>
	                                        <option value="0">省级</option>
	                                        <option value="1">市级</option>
	                                        <option value="2">区县级</option>
	                                    </select>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">所属 </label>
                                <div class="controls">
                                    <input type="text" class="span6"   id="roleArea" name="roleArea"/>
                                </div>
                            </div> 
                             <div class="control-group">
                                <label class="control-label">是否启用 </label>
                                <div class="controls">
                                     <input type="checkbox" id="isUse" value="0" name="isUse" />
                                </div>
                            </div> 
                            <div class="form-actions" style="background-color:white">
                                <button class="btn btn-success" type="submit">提交</button>
                                <button type="button" class="btn" id="btn-cancel">取消</button>
                            </div>
                            </form>
                            <!-- END FORM-->
                    <!-- END SAMPLE FORM PORTLET-->
                    <script src="${staticUrl}/js/pages/metro/role/rolePage.js?v=${staticV}"></script>
                
</body>
<!-- END BODY -->
</html>
